﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:options="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
                    xmlns:skin="clr-namespace:UBCon.Ribbon.SkinManagers"
                    xmlns:ubcr="clr-namespace:UBCon.Ribbon">



    <Color x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=BaseDarkColor}">#FF252525</Color>

    <Color x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=DropDownBorderColor}">White</Color>
    
    <Color x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteColor}">White</Color>
    
    <!--  ready  -->
    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WindowBackgroundBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=BaseDarkColor}}" />
    
    <!--  ready  -->

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WindowActiveTitleBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=BaseDarkColor}}" />


    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=RibbonBarBackgroundBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=BaseDarkColor}}" />


    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=RibbonBarSelectedItemBkBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=BaseDarkColor}}" />

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=SelectedTabItemBkBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=BaseDarkColor}}" />

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=DefaultImageBrush}" Color="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteColor}}" />

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=DecoratorBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteColor}}" />

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=CaptionButtonPressedStateBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteColor}}" />

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=RibbonBarBorderBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteColor}}" />

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=MouseOverBorderBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteColor}}" />

    <!--<SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                  ResourceId=MouseOverBackgroundBrush}"
                     x:Shared="True"
                     Color="#444444" />-->
    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                  ResourceId=PressedBorderBrush}"
                     x:Shared="True"
                     Color="White" />

    <!--<SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                  ResourceId=PressedBackgroundBrush}"
                     x:Shared="True"
                     Color="#444444" />-->

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                  ResourceId=PressedBackgroundBrush}"
                     x:Shared="True"
                     Color="#FF119EDA" 
                     options:Freeze="True"/>

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                  ResourceId=MouseOverBackgroundBrush}"
                     x:Shared="True"
                     Color="#66119EDA" 
                     options:Freeze="True"/>
    
    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=DropDownBackgroundBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=BaseDarkColor}}" />

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=SelectedTabItemBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=MouseOverBackgroundBrush}}" />

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=DefaultForegroundBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteColor}}" />

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=GalleryHeaderBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=BaseDarkColor}}" />

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=GalleryBorderBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteColor}}" />

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=AppMenuItemsPanelBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=BaseDarkColor}}" />

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=LeftArrowImage_DefaultStateBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteColor}}" />

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=LeftArrowImage_MouseOverStateBrush}" Color="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteColor}}" />

    <DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=RightArrow}">
        <DrawingImage.Drawing>
            <GeometryDrawing Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteBrush}}" Geometry="M0,4 L 0,0 L2,2 Z">
                <GeometryDrawing.Pen>
                    <Pen Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteBrush}}" Thickness="1" />
                </GeometryDrawing.Pen>
            </GeometryDrawing>
        </DrawingImage.Drawing>
    </DrawingImage>
    
    <DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=LeftArrowImage_DefaultState}">
        <DrawingImage.Drawing>
            <GeometryDrawing Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteBrush}}" Geometry="M15,4 L3,4 L7,0 L5,0 L0,5 L5,10 L7,10 L3,6 L15,6z">
                <GeometryDrawing.Pen>
                    <Pen Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteBrush}}" Thickness="0.6" />
                </GeometryDrawing.Pen>
            </GeometryDrawing>
        </DrawingImage.Drawing>
    </DrawingImage>

    <DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=LeftArrowImage_MouseOverState}">
        <DrawingImage.Drawing>
            <GeometryDrawing Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteBrush}}" Geometry="M15,4 L3,4 L7,0 L5,0 L0,5 L5,10 L7,10 L3,6 L15,6z">
                <GeometryDrawing.Pen>
                    <Pen Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteBrush}}" Thickness="0.6" />
                </GeometryDrawing.Pen>
            </GeometryDrawing>
        </DrawingImage.Drawing>
    </DrawingImage>

    <SolidColorBrush x:Key="LauncherImageBrush" Color="#50000000" />
    
    <DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=LauncherButtonImage}">
        <DrawingImage.Drawing>
            <DrawingGroup>
                <GeometryDrawing Geometry="M1,6 L1,1 L6,1">
                    <GeometryDrawing.Pen>
                        <Pen Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteBrush}}" Thickness="1" />
                    </GeometryDrawing.Pen>
                </GeometryDrawing>
                <GeometryDrawing Geometry="M 7,4 L 7,7 L 4,7">
                    <GeometryDrawing.Pen>
                        <Pen Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteBrush}}" Thickness="1" />
                    </GeometryDrawing.Pen>
                </GeometryDrawing>

                <GeometryDrawing Geometry="M0,5 L0,0 L5,0 M 3,3 L5,5">
                    <GeometryDrawing.Pen>
                        <Pen Brush="{StaticResource ResourceKey=LauncherImageBrush}" Thickness="1" />
                    </GeometryDrawing.Pen>
                </GeometryDrawing>
                <GeometryDrawing Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteBrush}}" Geometry="M 6,3 L 6,6 L 3,6 Z">
                    <GeometryDrawing.Pen>
                        <Pen Brush="{StaticResource ResourceKey=LauncherImageBrush}" Thickness="1" />
                    </GeometryDrawing.Pen>
                </GeometryDrawing>
            </DrawingGroup>
        </DrawingImage.Drawing>
    </DrawingImage>
    <DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=TickImage}">
        <DrawingImage.Drawing>
            <GeometryDrawing Geometry="M0,5 L3,8 L6,0">
                <GeometryDrawing.Pen>
                    <Pen Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteBrush}}" Thickness="0.8" />
                </GeometryDrawing.Pen>
            </GeometryDrawing>
        </DrawingImage.Drawing>
    </DrawingImage>

    <DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=ExpandImage}">
        <DrawingImage.Drawing>
            <GeometryDrawing Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly=skin:SkinManager, ResourceId=WhiteBrush}}" Geometry="M0,4 L 6,4 L 3,8 L 0,4">
                <GeometryDrawing.Pen>
                    <Pen Thickness="1" />
                </GeometryDrawing.Pen>
            </GeometryDrawing>
        </DrawingImage.Drawing>
    </DrawingImage>
    
    <Pen x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                      ResourceId=DefaultPen}"
         Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                  ResourceId=WhiteBrush}}"
         EndLineCap="Flat"
         StartLineCap="Flat"
         Thickness="2.15" />

    <Pen x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                      ResourceId=MouseOverStatePen}"
         Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                   ResourceId=WhiteBrush}}"
         EndLineCap="Flat"
         StartLineCap="Flat"
         Thickness="2.15" />

    <Pen x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                      ResourceId=PressedStatePen}"
         Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                   ResourceId=WhiteBrush}}"
         EndLineCap="Flat"
         StartLineCap="Flat"
         Thickness="2.15" />

    <DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=QADownArrowImage}" RenderOptions.BitmapScalingMode="HighQuality">
        <DrawingImage.Drawing>
            <DrawingGroup>
                <GeometryDrawing Geometry="M0,0 L8,0">
                    <GeometryDrawing.Pen>
                        <Pen Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteBrush}}" Thickness="1" />
                    </GeometryDrawing.Pen>
                </GeometryDrawing>
                <GeometryDrawing Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WhiteBrush}}" Geometry="M0,4 L 8,4 L 4,7z">
                    <GeometryDrawing.Pen>
                        <Pen Thickness="0" />
                    </GeometryDrawing.Pen>
                </GeometryDrawing>
            </DrawingGroup>
        </DrawingImage.Drawing>
    </DrawingImage>
    
    <DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=NormalStateImage}">
        <DrawingImage.Drawing>
            <DrawingGroup>
                <GeometryDrawing Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                          ResourceId=DefaultImageBrush}}"
                                 Geometry="M0,0 L9,9"
                                 Pen="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                        ResourceId=DefaultPen}}" />
                <GeometryDrawing Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                          ResourceId=DefaultImageBrush}}"
                                 Geometry="M9,0 L0,9"
                                 Pen="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                        ResourceId=DefaultPen}}" />
            </DrawingGroup>
        </DrawingImage.Drawing>
    </DrawingImage>

    <DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=MouseOverStateImage}">
        <DrawingImage.Drawing>
            <DrawingGroup>
                <GeometryDrawing Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                           ResourceId=DecoratorBrush}}"
                                 Geometry="M0,0 L9,9"
                                 Pen="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                         ResourceId=MouseOverStatePen}}" />
                <GeometryDrawing Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                           ResourceId=DecoratorBrush}}"
                                 Geometry="M9,0 L0,9"
                                 Pen="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                         ResourceId=MouseOverStatePen}}" />
            </DrawingGroup>
        </DrawingImage.Drawing>
    </DrawingImage>

    <DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=PressedStateImage}">
        <DrawingImage.Drawing>
            <DrawingGroup>
                <GeometryDrawing Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                           ResourceId=CaptionButtonPressedStateBrush}}"
                                 Geometry="M0,0 L9,9"
                                 Pen="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                         ResourceId=PressedStatePen}}" />
                <GeometryDrawing Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                           ResourceId=CaptionButtonPressedStateBrush}}"
                                 Geometry="M9,0 L0,9"
                                 Pen="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                         ResourceId=PressedStatePen}}" />
            </DrawingGroup>
        </DrawingImage.Drawing>
    </DrawingImage>

    <ControlTemplate x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=DefaulThumbTemplate}" TargetType="{x:Type Thumb}">
        <Border HorizontalAlignment="Stretch"
                VerticalAlignment="Stretch"
                Background="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                              ResourceId=BlackBrush}}">
            <Image Margin="0,0,0,2"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Source="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                             ResourceId=ThumbImage}}"
                   Stretch="None" />
        </Border>
    </ControlTemplate>
    
    <Pen x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                      ResourceId=_Pen1}"
         Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                  ResourceId=WhiteBrush}}"
         Thickness="0.8" />

    <Pen x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                      ResourceId=_Pen2}"
         Brush="{StaticResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                  ResourceId=WhiteBrush}}"
         Thickness="0.8" />
    
    <DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=RibbonBarOptionsButtonImage}" RenderOptions.BitmapScalingMode="Linear">
        <DrawingImage.Drawing>
            <DrawingGroup>
                <GeometryDrawing Geometry="M0,0 L12,0 L12,10 L0,10z" Pen="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=_Pen1}}" />
                <GeometryDrawing Geometry="M0,2.5 L12,2.5" Pen="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=_Pen1}}" />
                <GeometryDrawing Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                           ResourceId=WhiteBrush}}"
                                 Geometry="M4,5 L6,2.5 L8,5 L6,3.7z"
                                 Pen="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                         ResourceId=_Pen1}}" />
                <GeometryDrawing Geometry="M6,2.5 L6,10" Pen="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=_Pen1}}" />
            </DrawingGroup>
        </DrawingImage.Drawing>
    </DrawingImage>
    
</ResourceDictionary>